<h1>Shoes view</h1>
$detail = "<a href = 'http://databaze.fbmi.cvut.cz/suchapa3/bitwa2/bi/cakephp/index.php/shoes/detail/$aaa'>Detail</a>";
<?php echo "<br>";
echo $pom;
echo "<table>";
echo "<tr>";
echo "<th>Id</th>";
echo "<th>Nazev</th>";
echo "<th>Barva</th>";
echo "<th>Vazani</th>";
echo "<th>podpatky</th>";
echo "<th>typ</th>";
echo "</tr>";
foreach($bota as $pom){
    echo "<tr>";
    echo "<td>".$pom['Shoe']['id']."</td>";
    echo "<td>".$pom['Shoe']['nazev']. "</td>";
    echo "<td>".$pom['Shoe']['barva']."</td>";
      echo "<td>".$pom['Shoe']['vazani']."</td>";
    echo "<td>".$pom['Shoe']['podpatky']."</td>";
      echo "<td>".$pom['Shoe']['typ']."</td>";
    $aaa= $pom['Shoe']['id'];
   echo $detail;
    echo "</tr>";

    

}
echo "</table>";
echo "<a href = 'http://databaze.fbmi.cvut.cz/suchapa3/bitwa2/bi/cakephp/index.php/shoes/add'>Pridat novy</a>";
?>